/* 购物车容器 */
.cart-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-container h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 购物车商品列表 */
.cart-items {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #ff0036;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.quantity-control input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.remove-item {
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff0036;
}

/* 空购物车 */
.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.empty-cart .btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ff0036;
    color: white;
    border-radius: 4px;
    transition: background 0.3s;
}

.empty-cart .btn:hover {
    background-color: #e60033;
}

/* 购物车汇总 */
.cart-summary {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff0036;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background-color: #e60033;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}